<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        /* iphone6 7 8 */
        body {
            background-color: yellow;
        }

        /* iphone 5 */
        @media screen and (max-width: 320px) {
            body {
                background-color: red;
            }
        }

        /* iphoneX */
        @media screen and (min-width: 375px) and (-webkit-device-pixel-ratio: 3) {
            body {
                background-color: #0FF000;
            }
        }

        /* iphone6 7 8 plus */
        @media screen and (min-width: 414px) {
            body {
                background-color: blue;
            }
        }

        /* ipad */
        @media screen and (min-width: 768px) {
            body {
                background-color: green;
            }
        }

        /* ipad pro */
        @media screen and (min-width: 1024px) {
            body {
                background-color: #FF00FF;
            }
        }

        /* pc */
        @media screen and (min-width: 1100px) {
            body {
                background-color: black;
            }
        }

      </style>
</head>

<body>


</body>

</html>